import request from '@/utils/request'

// 查询档案列表
export function listNotice(query) {
  return request({
    url: '/report/notice/list',
    method: 'get',
    params: query
  })
}

export function getTypeList(queryParams) {
  return request({
    url: '/report/reporting/typeList',
    method: 'post',
    params: queryParams
  })
}

export function getBorrowList(queryParams) {
  return request({
    url: '/report/reporting/borrowList',
    method: 'post',
    params: queryParams
  })
}

export function getBmiList(queryParams) {
  return request({
    url: '/report/reporting/bmiList',
    method: 'post',
    params: queryParams
  })
}

// 查询档案详细
export function getNotice(id) {
  return request({
    url: '/report/notice/' + id,
    method: 'get'
  })
}

// 新增档案
export function addNotice(data) {
  return request({
    url: '/report/notice',
    method: 'post',
    data: data
  })
}

// 修改档案
export function updateNotice(data) {
  return request({
    url: '/report/notice',
    method: 'put',
    data: data
  })
}

// 删除档案
export function delNotice(id) {
  return request({
    url: '/report/notice/' + id,
    method: 'delete'
  })
}
